extends StateBase


var title_level: TitleLevel


func on_enter(owner = null, params = null):
	title_level = owner as TitleLevel
	
	title_level.animation_player.play("flicker")	
	
	await get_tree().process_frame
	AudioManager.play_music("music_title")
	
	await title_level.ui_black_fade.fade_out(2.0).finished
	title_level.states.transition("Title")
	

func on_exit(owner = null):
	pass


func on_process(delta: float, owner = null):
	pass
	
	
func on_physics_process(delta: float, owner = null):
	pass
